package com.example.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.InterceptorRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;

import com.example.interceptors.JwtInterceptor;

@Configuration
public class WebConfig implements WebMvcConfigurer {
    // private final String[] whiteList = {
    // "/user/login",
    // "/user/register",
    // "/user/admin/**",
    // "/category/admin/**"
    // };
    // private final String[] blackList = {
    // "/order/add"
    // };

    // @Override
    // @SuppressWarnings("null")
    // public void addInterceptors(InterceptorRegistry registry) {
    // registry.addInterceptor(new JwtInterceptor())
    // .addPathPatterns(blackList);
    // // .excludePathPatterns(whiteList);
    // }

}
